package com.example.mymvvmdemo.models.login.entity;

public class LoginEntity {


    public int code;
    public String message;
    public DataDTO data;

    @Override
    public String toString() {
        return "LoginEntity{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        public String message;
        public TokenDTO token;
        public UserDTO user;

        @Override
        public String toString() {
            return "DataDTO{" +
                    "message='" + message + '\'' +
                    ", token=" + token +
                    ", user=" + user +
                    '}';
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public TokenDTO getToken() {
            return token;
        }

        public void setToken(TokenDTO token) {
            this.token = token;
        }

        public UserDTO getUser() {
            return user;
        }

        public void setUser(UserDTO user) {
            this.user = user;
        }

        public static class TokenDTO {
            public String refresh;
            public String access;

            @Override
            public String toString() {
                return "TokenDTO{" +
                        "refresh='" + refresh + '\'' +
                        ", access='" + access + '\'' +
                        '}';
            }

            public String getRefresh() {
                return refresh;
            }

            public void setRefresh(String refresh) {
                this.refresh = refresh;
            }

            public String getAccess() {
                return access;
            }

            public void setAccess(String access) {
                this.access = access;
            }
        }

        public static class UserDTO {
            public int id;
            public String username;
            public Object mobile;
            public String email;

            @Override
            public String toString() {
                return "UserDTO{" +
                        "id=" + id +
                        ", username='" + username + '\'' +
                        ", mobile=" + mobile +
                        ", email='" + email + '\'' +
                        '}';
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public Object getMobile() {
                return mobile;
            }

            public void setMobile(Object mobile) {
                this.mobile = mobile;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }
        }
    }
}
